package com.four.commodity.service;

import java.util.List;

import com.four.commodity.pojo.Commodity;

public interface CommodityService {
	
	public List<Commodity> selectAll();
	
	/**根据商品编号查询商品信息 */
	public Commodity selectById(String id);
	
	/** 添加商品  */
	public boolean addCommodity(String id, String name,String producing_area,String descrption,String create_time,String market_price,String product_amount,String picture,String discount,String flag);
	
	/** 更新商品  */
	public boolean updateCommodity(String id,String name, String producing_area, String descrption,  String create_time,
			String market_price, String product_amount, String picture, String discount, String flag);
	
	/** 删除商品 */

	public boolean deleteCommodity(String id);

	

}
